<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<title><fmt:message key="page.title.other" /></title>
		<link rel="stylesheet" type="text/css"
			href="<c:url value="/commons/manage/manage.css" />"></link>
		<script type="text/javascript"
			src="<c:url value="/user/expertInfoList.js" />"></script>
	</head>
	<body>
		<%@ include file="/commons/includes/header.jspf"%>
		<table align="center" style="width: 1000px; margin-top: 5px;">
			<tr>
				<td align="left" height="24" colspan="2">
					&nbsp;&nbsp;
					<img height="18" width="12" align="absMiddle"
						src="<c:url value="/commons/images/local_ico.jpg" />">
						&nbsp;&nbsp;当前位置: <a href="<c:url value="/index.jsp" />">首页</a>&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;&nbsp;
						<a href="<c:url value="/message/messageIndexList.shtml" />">专家服务</a>&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;&nbsp;
						<c:if test="${empty form.expert}">
							<a
								href="<c:url value="/message/messageIndexList.shtml" />">留言信息</a>
						</c:if>
						<c:if test="${not empty form.expert}">
							<a
								href="<c:url value="/message/messageIndexList.shtml?expert=${CURRENT_USER.username}&state=ASSIGNED" />">待我回复留言</a>
						</c:if>
				</td>
			</tr>
			<tr>
				<td valign="top" width="250">
					<table class="catalogTable topTable">
						<thead>
							<tr>
								<td>
									专家服务
								</td>
							</tr>
						</thead>
						<tbody class="subCatalog">
							<tr>
								<td>
									<a href="<c:url value="/message/messageIndexList.shtml" />">留言信息</a>
								</td>
							</tr>
							<c:if
								test="${(not empty CURRENT_USER) and (CURRENT_USER.type eq 'expert')}">
								<tr>
									<td>
										<a
											href="<c:url value="/message/messageIndexList.shtml?expert=${CURRENT_USER.username}&state=ASSIGNED" />">待我回复留言</a>
									</td>
								</tr>
							</c:if>
						</tbody>
					</table>
					<table class="catalogTable topTable">
						<thead>
							<tr>
								<td>
									专家领域
								</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>
									<div class="accordion-content" align="center" id="showCatalog">
										<c:url var="listUrl" value="/user/expertInfoList.shtml" />
										<span class="catalog" href="${listUrl}"> <span
											class="catIco"></span> <span class="catText">全部</span> </span>
										<c:url var="listUrl"
											value="/user/expertInfoList.shtml?likeDomain=" />
										<c:forEach var="catalog" items="${catalogMap}">
											<c:set var="cata" value="${catalog.value}" />
											<span class="catalog" href="${listUrl}${cata.id}"> <span
												class="catIco"></span> <span class="catText">${cata.title}</span>
											</span>
											<c:forEach var="subCatalog" items="${cata.children}">
												<c:set var="subCata" value="${subCatalog.value}" />
												<span class="catalog subcatalog"
													href="${listUrl}${subCata.id}"> <span
													class="catIco subcatIco"></span> <span
													class="catText subcatText">${subCata.title}</span> </span>
											</c:forEach>
										</c:forEach>
									</div>
								</td>
							</tr>
					</table>
					<%@ include file="/commons/includes/search.jspf"%>
				</td>
				<td valign="top" width="750">
					<table width="750">
						<tr>
							<td class="infoNavbgLeft" />
							<td class="infoNavbgRight" />
						</tr>
					</table>
					<table class="infoTable" style="width: 750px; border: 0;">
						<c:if test="${empty messageList}">
							<tr>
								<td align="left">
									未找到记录...
								</td>
							</tr>
						</c:if>
						<c:if test="${not empty messageList}">
							<c:forEach items="${messageList}" var="message">
								<c:url var="openUrl" value="/message/messageIndexEdit.shtml?id=${message.id}" />
								<tr>
									<td class="indexShowShort" align="left">
										<a title="${message.title}" href="${openUrl}">${message.title}</a>
									</td>
									<td width="220" align="center">
										<a title="${message.title}" href="${openUrl}"><fmt:formatDate value="${message.submitTime}" pattern="yyyy-MM-dd HH:mm:ss" /></a>
									</td>
									<td width="120" align="center">
										<a title="${message.title}" href="${openUrl}">${empty message.submiter?message.ip:userMap[message.submiter].name}</a>
									</td>
									<td width="120" align="center">
										<a title="${message.title}" href="${openUrl}">${message.state eq 'REPLIED'?'已回复':'未回复'}</a>
									</td>
								</tr>
							</c:forEach>
							<tr>
								<td colspan="4" align="right">
									${pageStr}
								</td>
							</tr>
						</c:if>
					</table>
				</td>
			</tr>
		</table>
		<%@ include file="/commons/includes/footer.jspf"%>
	</body>
</html>